<?php 
namespace app\superadmin\controller;
use app\superadmin\model\Index as IndexModel;
//继承Base控制器
class Score extends Base
{
    public function scorelist()
    {
       $scoreres= \think\Db::name('score')
             ->alias('a')
             ->join('__DINING__ b', 'a.shop_id =b.shop_id')
             ->field('a.id,a.tastescore,a.envscore,a.servscore,a.usernum,b.shopname')
             ->where('a.shop_id =b.shop_id')
             ->paginate(1);
       $this->assign('scoreres',$scoreres);
      return $this->fetch();
    } 
    


  

}
